<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: Scale9Image类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_scale9_image-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Scale9Image类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>点9图  
 <a href="class_scale9_image.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_scale9_image_8h_source.html">Scale9Image.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a96c474721f8b58644a2f100af31644eb"><td class="memItemLeft" align="right" valign="top"><a id="a96c474721f8b58644a2f100af31644eb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>draw</b> (<a class="el" href="class_render.html">Render</a> *render, const <a class="el" href="class_matrix4_x4.html">Matrix4X4</a> &amp;transform)</td></tr>
<tr class="separator:a96c474721f8b58644a2f100af31644eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ebe5fc2bfe9e96338d001ad00c3ab17"><td class="memItemLeft" align="right" valign="top"><a id="a5ebe5fc2bfe9e96338d001ad00c3ab17"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>draw</b> (<a class="el" href="class_render.html">Render</a> *render, const <a class="el" href="class_rect.html">Rect</a> &amp;draw_rect, <a class="el" href="class_camera.html">Camera</a> *cramer)</td></tr>
<tr class="separator:a5ebe5fc2bfe9e96338d001ad00c3ab17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3085b41d4b87a6f97105ff8d604f8cff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#a3085b41d4b87a6f97105ff8d604f8cff">setScalingX</a> (float sx)</td></tr>
<tr class="memdesc:a3085b41d4b87a6f97105ff8d604f8cff"><td class="mdescLeft">&#160;</td><td class="mdescRight">横向缩放  <a href="#a3085b41d4b87a6f97105ff8d604f8cff">更多...</a><br /></td></tr>
<tr class="separator:a3085b41d4b87a6f97105ff8d604f8cff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4d6e065ff3001b486769fe32d5b5a20"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#ac4d6e065ff3001b486769fe32d5b5a20">setScalingY</a> (float sy)</td></tr>
<tr class="memdesc:ac4d6e065ff3001b486769fe32d5b5a20"><td class="mdescLeft">&#160;</td><td class="mdescRight">纵向缩放  <a href="#ac4d6e065ff3001b486769fe32d5b5a20">更多...</a><br /></td></tr>
<tr class="separator:ac4d6e065ff3001b486769fe32d5b5a20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d5803d50200f82df1b89814a336a2b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#a5d5803d50200f82df1b89814a336a2b8">setDisplaySize</a> (const <a class="el" href="class_size.html">Size</a> &amp;size)</td></tr>
<tr class="memdesc:a5d5803d50200f82df1b89814a336a2b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置图片的显示尺寸  <a href="#a5d5803d50200f82df1b89814a336a2b8">更多...</a><br /></td></tr>
<tr class="separator:a5d5803d50200f82df1b89814a336a2b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6329a1b1ac6cd72d8c2433565adf506"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_size.html">Size</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#ad6329a1b1ac6cd72d8c2433565adf506">getDisplaySize</a> () const</td></tr>
<tr class="memdesc:ad6329a1b1ac6cd72d8c2433565adf506"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取图片当前的显示尺寸  <a href="#ad6329a1b1ac6cd72d8c2433565adf506">更多...</a><br /></td></tr>
<tr class="separator:ad6329a1b1ac6cd72d8c2433565adf506"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb2b67281e1139b985087a3efd483e37"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_size.html">Size</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#aeb2b67281e1139b985087a3efd483e37">getImageSize</a> () const</td></tr>
<tr class="memdesc:aeb2b67281e1139b985087a3efd483e37"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取图片的原始尺寸大小  <a href="#aeb2b67281e1139b985087a3efd483e37">更多...</a><br /></td></tr>
<tr class="separator:aeb2b67281e1139b985087a3efd483e37"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:abe0f7fbf599f30224dff16515e484481"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_scale9_image.html">Scale9Image</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#abe0f7fbf599f30224dff16515e484481">create</a> (const std::wstring &amp;file_name, const <a class="el" href="class_rect.html">Rect</a> cap_insets)</td></tr>
<tr class="memdesc:abe0f7fbf599f30224dff16515e484481"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用图片创建9宫图  <a href="#abe0f7fbf599f30224dff16515e484481">更多...</a><br /></td></tr>
<tr class="separator:abe0f7fbf599f30224dff16515e484481"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54768a281803e4c2815fd3bc1038fab7"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_scale9_image.html">Scale9Image</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#a54768a281803e4c2815fd3bc1038fab7">create</a> (const SpriteFrameSharedPtr &amp;sprite_frame, const <a class="el" href="class_rect.html">Rect</a> &amp;cap_insets)</td></tr>
<tr class="memdesc:a54768a281803e4c2815fd3bc1038fab7"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过精灵帧创建9宫图  <a href="#a54768a281803e4c2815fd3bc1038fab7">更多...</a><br /></td></tr>
<tr class="separator:a54768a281803e4c2815fd3bc1038fab7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad49d67c77d062c0bb5a101c6d49ede02"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr&lt; <a class="el" href="class_scale9_image.html">Scale9Image</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#ad49d67c77d062c0bb5a101c6d49ede02">createUniquePtr</a> (const std::wstring &amp;file_name, const <a class="el" href="class_rect.html">Rect</a> cap_insets)</td></tr>
<tr class="memdesc:ad49d67c77d062c0bb5a101c6d49ede02"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用图片创建9宫图  <a href="#ad49d67c77d062c0bb5a101c6d49ede02">更多...</a><br /></td></tr>
<tr class="separator:ad49d67c77d062c0bb5a101c6d49ede02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23cc14e2c0d8ec8445a89eb905b1ce3e"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr&lt; <a class="el" href="class_scale9_image.html">Scale9Image</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#a23cc14e2c0d8ec8445a89eb905b1ce3e">createUniquePtr</a> (const SpriteFrameSharedPtr &amp;sprite_frame, const <a class="el" href="class_rect.html">Rect</a> &amp;cap_insets)</td></tr>
<tr class="memdesc:a23cc14e2c0d8ec8445a89eb905b1ce3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过精灵帧创建9宫图  <a href="#a23cc14e2c0d8ec8445a89eb905b1ce3e">更多...</a><br /></td></tr>
<tr class="separator:a23cc14e2c0d8ec8445a89eb905b1ce3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a95c3ecac54996e0b4a2eea1e3d1e1402"><td class="memItemLeft" align="right" valign="top"><a id="a95c3ecac54996e0b4a2eea1e3d1e1402"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (const std::wstring &amp;file_name, const <a class="el" href="class_rect.html">Rect</a> cap_insets)</td></tr>
<tr class="separator:a95c3ecac54996e0b4a2eea1e3d1e1402"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5801da8109fa31e9c5183b5e3f34fb5a"><td class="memItemLeft" align="right" valign="top"><a id="a5801da8109fa31e9c5183b5e3f34fb5a"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (const SpriteFrameSharedPtr &amp;sprite_frame, const <a class="el" href="class_rect.html">Rect</a> cap_insets)</td></tr>
<tr class="separator:a5801da8109fa31e9c5183b5e3f34fb5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cf5210205bbbbdc4fc360c78cbe35fd"><td class="memItemLeft" align="right" valign="top"><a id="a9cf5210205bbbbdc4fc360c78cbe35fd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setCapInsets</b> (const <a class="el" href="class_rect.html">Rect</a> &amp;cap_insets)</td></tr>
<tr class="separator:a9cf5210205bbbbdc4fc360c78cbe35fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ad3b6400b4eb161df4a97840b3b9f60"><td class="memItemLeft" align="right" valign="top"><a id="a7ad3b6400b4eb161df4a97840b3b9f60"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>update</b> ()</td></tr>
<tr class="separator:a7ad3b6400b4eb161df4a97840b3b9f60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a023394d4ca3ec373cc795072fdfbb41a"><td class="memItemLeft" align="right" valign="top"><a id="a023394d4ca3ec373cc795072fdfbb41a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateMat</b> (const <a class="el" href="class_matrix4_x4.html">Matrix4X4</a> &amp;mat)</td></tr>
<tr class="separator:a023394d4ca3ec373cc795072fdfbb41a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dbe50635f4f646c56a1072f2d0eb46d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#a7dbe50635f4f646c56a1072f2d0eb46d">updateVertexHorizontal</a> (float now_width)</td></tr>
<tr class="memdesc:a7dbe50635f4f646c56a1072f2d0eb46d"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新水平方向的顶点，相当于进行水平方向的缩放处理  <a href="#a7dbe50635f4f646c56a1072f2d0eb46d">更多...</a><br /></td></tr>
<tr class="separator:a7dbe50635f4f646c56a1072f2d0eb46d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41777eee58820af123107cc3e9c1d61e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_scale9_image.html#a41777eee58820af123107cc3e9c1d61e">updateVertexVertical</a> (float now_height)</td></tr>
<tr class="memdesc:a41777eee58820af123107cc3e9c1d61e"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新垂直方向的定点，相当于进行垂直方向的缩放处理  <a href="#a41777eee58820af123107cc3e9c1d61e">更多...</a><br /></td></tr>
<tr class="separator:a41777eee58820af123107cc3e9c1d61e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>点9图 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="abe0f7fbf599f30224dff16515e484481"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe0f7fbf599f30224dff16515e484481">&#9670;&nbsp;</a></span>create() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_scale9_image.html">Scale9Image</a>* Scale9Image::create </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>file_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_rect.html">Rect</a>&#160;</td>
          <td class="paramname"><em>cap_insets</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>使用图片创建9宫图 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::wstring &amp; file_name 图片的路径 </td></tr>
    <tr><td class="paramname">const</td><td><a class="el" href="class_rect.html" title="矩形">Rect</a> cap_insets 图片的可拉伸区域 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_scale9_image.html" title="点9图">Scale9Image</a> * </dd></dl>

</div>
</div>
<a id="a54768a281803e4c2815fd3bc1038fab7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54768a281803e4c2815fd3bc1038fab7">&#9670;&nbsp;</a></span>create() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_scale9_image.html">Scale9Image</a>* Scale9Image::create </td>
          <td>(</td>
          <td class="paramtype">const SpriteFrameSharedPtr &amp;&#160;</td>
          <td class="paramname"><em>sprite_frame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_rect.html">Rect</a> &amp;&#160;</td>
          <td class="paramname"><em>cap_insets</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通过精灵帧创建9宫图 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sprite_frame.html" title="精灵帧">SpriteFrame</a> &amp; sprite_frame 精灵帧 </td></tr>
    <tr><td class="paramname">const</td><td><a class="el" href="class_rect.html" title="矩形">Rect</a> &amp; cap_insets 图片的可拉伸区域 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_scale9_image.html" title="点9图">Scale9Image</a> * </dd></dl>

</div>
</div>
<a id="ad49d67c77d062c0bb5a101c6d49ede02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad49d67c77d062c0bb5a101c6d49ede02">&#9670;&nbsp;</a></span>createUniquePtr() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::unique_ptr&lt;<a class="el" href="class_scale9_image.html">Scale9Image</a>&gt; Scale9Image::createUniquePtr </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>file_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_rect.html">Rect</a>&#160;</td>
          <td class="paramname"><em>cap_insets</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>使用图片创建9宫图 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::wstring &amp; file_name 图片的路径 </td></tr>
    <tr><td class="paramname">const</td><td><a class="el" href="class_rect.html" title="矩形">Rect</a> cap_insets 图片的可拉伸区域 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>std::unique_ptr&lt;Scale9Image&gt; </dd></dl>

</div>
</div>
<a id="a23cc14e2c0d8ec8445a89eb905b1ce3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23cc14e2c0d8ec8445a89eb905b1ce3e">&#9670;&nbsp;</a></span>createUniquePtr() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::unique_ptr&lt;<a class="el" href="class_scale9_image.html">Scale9Image</a>&gt; Scale9Image::createUniquePtr </td>
          <td>(</td>
          <td class="paramtype">const SpriteFrameSharedPtr &amp;&#160;</td>
          <td class="paramname"><em>sprite_frame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_rect.html">Rect</a> &amp;&#160;</td>
          <td class="paramname"><em>cap_insets</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通过精灵帧创建9宫图 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sprite_frame.html" title="精灵帧">SpriteFrame</a> &amp; sprite_frame 精灵帧 </td></tr>
    <tr><td class="paramname">const</td><td><a class="el" href="class_rect.html" title="矩形">Rect</a> &amp; cap_insets 图片的可拉伸区域 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>std::unique_ptr&lt;Scale9Image&gt; </dd></dl>

</div>
</div>
<a id="ad6329a1b1ac6cd72d8c2433565adf506"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6329a1b1ac6cd72d8c2433565adf506">&#9670;&nbsp;</a></span>getDisplaySize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_size.html">Size</a>&amp; Scale9Image::getDisplaySize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取图片当前的显示尺寸 </p>
<dl class="section return"><dt>返回</dt><dd>const <a class="el" href="class_size.html" title="尺寸">Size</a> &amp; </dd></dl>
<dl class="section see"><dt>参见</dt><dd>void <a class="el" href="class_scale9_image.html#a5d5803d50200f82df1b89814a336a2b8" title="设置图片的显示尺寸">setDisplaySize(const Size &amp; size)</a> </dd></dl>

</div>
</div>
<a id="aeb2b67281e1139b985087a3efd483e37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb2b67281e1139b985087a3efd483e37">&#9670;&nbsp;</a></span>getImageSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_size.html">Size</a>&amp; Scale9Image::getImageSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取图片的原始尺寸大小 </p>
<dl class="section return"><dt>返回</dt><dd>const <a class="el" href="class_size.html" title="尺寸">Size</a> &amp; </dd></dl>
<dl class="section see"><dt>参见</dt><dd>const <a class="el" href="class_size.html" title="尺寸">Size</a> &amp; <a class="el" href="class_scale9_image.html#ad6329a1b1ac6cd72d8c2433565adf506" title="获取图片当前的显示尺寸">getDisplaySize()const</a> </dd></dl>

</div>
</div>
<a id="a5d5803d50200f82df1b89814a336a2b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d5803d50200f82df1b89814a336a2b8">&#9670;&nbsp;</a></span>setDisplaySize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Scale9Image::setDisplaySize </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_size.html">Size</a> &amp;&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置图片的显示尺寸 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_size.html" title="尺寸">Size</a> &amp; size 尺寸 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void 图片会根据该设置值进行适当的缩放 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>const <a class="el" href="class_size.html" title="尺寸">Size</a> &amp; <a class="el" href="class_scale9_image.html#ad6329a1b1ac6cd72d8c2433565adf506" title="获取图片当前的显示尺寸">getDisplaySize()const</a> </dd></dl>

</div>
</div>
<a id="a3085b41d4b87a6f97105ff8d604f8cff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3085b41d4b87a6f97105ff8d604f8cff">&#9670;&nbsp;</a></span>setScalingX()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Scale9Image::setScalingX </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>sx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>横向缩放 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>sx 缩放的比例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>
<dl class="section see"><dt>参见</dt><dd>void <a class="el" href="class_scale9_image.html#ac4d6e065ff3001b486769fe32d5b5a20" title="纵向缩放">setScalingY(float sy)</a> </dd></dl>

</div>
</div>
<a id="ac4d6e065ff3001b486769fe32d5b5a20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4d6e065ff3001b486769fe32d5b5a20">&#9670;&nbsp;</a></span>setScalingY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Scale9Image::setScalingY </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>sy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>纵向缩放 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>sy 缩放比例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>
<dl class="section see"><dt>参见</dt><dd>void <a class="el" href="class_scale9_image.html#a3085b41d4b87a6f97105ff8d604f8cff" title="横向缩放">setScalingX(float sx)</a> </dd></dl>

</div>
</div>
<a id="a7dbe50635f4f646c56a1072f2d0eb46d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7dbe50635f4f646c56a1072f2d0eb46d">&#9670;&nbsp;</a></span>updateVertexHorizontal()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Scale9Image::updateVertexHorizontal </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>now_width</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>更新水平方向的顶点，相当于进行水平方向的缩放处理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>now_width 现在更新的宽度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>
<dl class="section see"><dt>参见</dt><dd>void <a class="el" href="class_scale9_image.html#a41777eee58820af123107cc3e9c1d61e" title="更新垂直方向的定点，相当于进行垂直方向的缩放处理">updateVertexVertical</a> (float now_height) </dd></dl>

</div>
</div>
<a id="a41777eee58820af123107cc3e9c1d61e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41777eee58820af123107cc3e9c1d61e">&#9670;&nbsp;</a></span>updateVertexVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Scale9Image::updateVertexVertical </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>now_height</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>更新垂直方向的定点，相当于进行垂直方向的缩放处理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>now_height 现在更新的高度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>
<dl class="section see"><dt>参见</dt><dd>void <a class="el" href="class_scale9_image.html#a7dbe50635f4f646c56a1072f2d0eb46d" title="更新水平方向的顶点，相当于进行水平方向的缩放处理">updateVertexHorizontal(float now_width)</a> </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/ui/<a class="el" href="_scale9_image_8h_source.html">Scale9Image.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
